-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
added docs for PrependExtensionInterface #2007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
.. code-block:: xml | ||
|
||
???? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can someone tell me what i would need to write here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can see, this should be:
<!-- app/config/config.xml -->
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:acme_hello="http://www.example.com/symfony/schema/"
xsi:schemaLocation="http://www.example.com/symfony/schema/ http://www.example.com/symfony/schema/hello-1.0.xsd">
<acme_something:config use_acme_goodbye="false">
<acme_something:entity_manager_name>non_default</acme_something:entity_manager>
</acme_something:config>
<acme_other:config use_acme_goodbye="false" />
</container>
------------------------------------------------ | ||
|
||
An Extension can prepend the configuration of any Bundle before the ``load()`` | ||
method is called by implementing ``PrependExtensionInterface``:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be:
method is called by implementing
:class:`Symfony\\Component\\DependencyInjection\\Compiler\\PrependExtensionInterface`::
@johnkary thx, fixed the issue you noted. |
} | ||
} | ||
|
||
Inside the ``prepend()`` method developers have full access to the ``ContainerBuilder`` instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should use the :method
syntax to link to the phpdoc of the method
added docs for PrependExtensionInterface
…r links/notes to other sections
Hey Lukas! Merged in and a few tweaks made. Thanks for the docs, and nice feature! Cheers! |
see symfony/symfony#5566
most likely the wording needs to be tweaked. i am not sure if the example is clear enough either.